package com.hotelmanage.manage.mappers;

import com.hotelmanage.manage.entities.Student;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@Repository
public interface StudentMapper extends CrudRepository<Student,Long> {

    @Override
    List<Student> findAll();

    Student findByStudentId(long theId);
}
